header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;  /* El header ocupa todo el ancho de la página */
    background-color: #282c34;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;  /* Distribuye el espacio entre los elementos */
    align-items: center;  /* Centra verticalmente los elementos */
    box-sizing: border-box;
    z-index: 1000;  /* Asegura que el header esté encima de otros elementos */
    border-bottom: 2px solid #333;  /* Añadir una línea en la parte inferior */
}

header .logotipo {
    width: 10%;  /* Ajuste dinámico para el tamaño del logo */
    height: auto;
    margin-right: 20px;  /* Separación entre el logo y la navegación */
}

header nav {
    flex-grow: 1;  /* El nav ocupa el espacio disponible */
    display: flex;
    justify-content: center;  /* Centra el contenido dentro del nav */
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;  /* Espaciado entre los elementos del menú */
    margin: 0;
    padding: 0;
}

header nav ul li a {
    color: #f4f4f4;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 20px;
    background-color: #333a45;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

header nav ul li a:hover {
    background-color: #4a5262;
    color: #e2e2e2;
}

#serverStatus {
    background-color: #f44336;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#serverStatus:hover {
    background-color: #ff5722;
}


footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    position: relative;
    clear: both;
    border: 2px solid #333;
    border-radius: 10px;
    margin-top: 20px;
}



#serverStatus.live {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

#serverStatus:hover {
    transform: scale(1.05);
    box-shadow: inset 6px 6px 12px rgba(0, 0, 0, 0.6), inset -6px -6px 12px rgba(255, 255, 255, 0.1);
}

main {
    
    margin-top: 160px;
}



h2 {
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    display: inline-block;
}

p, ul {
    font-size: 18px;
    line-height: 1.6;
}

button {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    border: 2px solid white;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #555;
}


label {
    font-size: 16px;
    font-weight: bold;
}






.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social-buttons a {
    color: white;
    padding: 10px;
    border: 2px solid white;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-buttons a:hover {
    background-color: #555;
    transform: scale(1.1);
}

.social-buttons i {
    font-size: 24px;
}


body {
    background-color: #333;
    padding: 20px;
    margin: 0;
}

.container {
    background-color: #fff;
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
    box-shadow: 0 0 0 10px #000;
}




.anchor-offset {
    scroll-margin-top: 100px;
}


body {
    opacity: 1;
    transition: opacity 0.5s;

}


body.fade {
    opacity: 0;
}

body.fade-in {
    opacity: 1;
}

.team-section {
    padding: 40px 20px;
    background-color: #f4f4f4;
    text-align: center;
    border-radius: 10px;
}

.team-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.team-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.team-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.team-photo {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.director-photo {
    background-image: url('https://via.placeholder.com/250x150?text=Director');
}

.webmaster-photo {
    background-image: url('https://via.placeholder.com/250x150?text=Webmaster');
}

.team-info {
    padding: 15px;
}

.team-info h3 {
    margin: 0;
    font-size: 20px;
    color: #555;
}

.team-info p {
    margin: 5px 0;
    font-size: 16px;
    color: #777;
}



.home-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
    border-radius: 10px;
}

.home-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.home-subtitle {
    font-size: 20px;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.home-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.instructions {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.instructions h3 {
    font-size: 24px;
    color: #444;
    margin-bottom: 15px;
}

.instructions ul {
    list-style: none;
    padding: 0;
}

.instructions li {
    font-size: 18px;
    margin-bottom: 10px;
    color: #555;
}

.instructions kbd {
    background: #333;
    color: #fff;
    padding: 3px 5px;
    border-radius: 3px;
    font-size: 16px;
    font-weight: bold;
}

.radio-section {
    padding: 40px 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 20px;
}
.radio-container h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

#currentSong, #status {
    font-size: 16px;
    color: #555;
    margin: 5px 0;
}

audio {
    width: 100%;
    max-width: 300px;
    margin: 10px auto;
    display: block;
    outline: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.radio-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn {
    background-color: #333;
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn i {
    font-size: 16px;
}

.btn:hover, .btn:focus {
    background-color: #555;
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.95);
}

.programs-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    margin-bottom: 20px;
}

.programs-section h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    display: inline-block;
    padding-bottom: 5px;
}

.programs-container {
    display: flex;
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 20px;
    margin-top: 20px;
}


.program-card {
    background-color: #fff;
    width: 300px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    cursor: pointer;
    overflow: hidden; /* Para asegurar que el texto no sobresalga fuera de la tarjeta */
}

.program-card:hover,
.program-card:focus {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    outline: none;
    border: 2px solid #0a74da;
}

/* Mantén el recuadro fijo como ya lo tienes */
.program-image-container {
    position: relative;
    width: 100%;
    height: 200px;          /* tu altura fija de la card */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #fff;       /* bordes/blancos visibles (letterboxing) */
}

/* La imagen se ajusta completa dentro del recuadro sin recortarse */
.program-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;    /* 🔑 muestra toda la imagen (sin recorte) */
    object-position: center;
    background: #fff;       /* si la imagen tiene transparencia, que se vea blanco detrás */
    border-radius: 8px;     /* opcional, si quieres seguir el radio de la card */
}

/* Overlay visual: NO anunciado por SR */
.program-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 15px; text-align: center; font-size: 18px; font-weight: bold;
  color: #fff; background: rgba(0,0,0,.45);
  border-radius: 8px;
  opacity: 0; transition: opacity 0.3s ease;
  z-index: 2;
}

/* Mostrar overlay en hover y con teclado (focus dentro de la tarjeta o del link) */
.program-image-container:hover .program-text,
.program-card:focus-within .program-text,
.program-image-container a:focus .program-text {
  opacity: 1;
}

.program-image-container:hover .program-image,
.program-card:focus-within .program-image,
.program-image-container a:focus + .program-text ~ .program-image {
  filter: brightness(0.7);
}

/* Neutraliza cualquier regla anterior atada a [aria-live="polite"] que te descoloque el overlay */
.program-text[aria-live="polite"] {
  top: auto; left: auto; transform: none; z-index: 2;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


#contador-container {
    text-align: center;
    font-size: 1.5em;
    color: #ffffff;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    margin: 20px auto;
}